<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>安装</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="xslt.requirements.html">需求</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="xslt.configuration.html">运行时配置</a></div>
 <div class="up"><a href="xslt.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="xslt.installation" class="section">
 <h2 class="title">安装</h2>
 <p class="para">
  On Unix, run <strong class="command">configure</strong> with the
  <strong class="option configure">--enable-xslt</strong>

  <strong class="option configure">--with-xslt-sablot</strong>

  options. The <span class="productname">Sablotron</span>
  library should be installed somewhere your compiler can find it.
 </p>
 <p class="para">
  Make sure you have the same libraries linked to the
  <span class="productname">Sablotron</span> library as those, which are linked
  with PHP. The configuration options:
  <strong class="option configure">--with-expat-dir=DIR</strong>

  <strong class="option configure">--with-iconv-dir=DIR</strong>

  are there to help you specify them. When asking for support, always
  mention these directives, and whether there are other versions of those
  libraries installed on your system somewhere. Naturally, provide all the
  version numbers.
 </p>
 <div class="caution"><strong class="caution">Caution</strong>
  <p class="para">
   Be sure your <span class="productname">Sablotron</span> library is linked to <em>-lstdc++</em> as
   otherwise your configure will fail, or PHP will fail to run or load.
  </p>
 </div>
 <blockquote class="note"><p><strong class="note">Note</strong>: 
  <strong>JavaScript E-XSLT support</strong><br />
  <span class="simpara">
   If you compiled <span class="productname">Sablotron</span> with JavaScript
   support, you must specify the option:
   <strong class="option configure">--with-sablot-js=DIR</strong>
.
  </span>
 </p></blockquote>
 <blockquote class="note"><p><strong class="note">Note</strong>: 
  <strong>Note to Win32 Users</strong><br />
  <p class="para">
  为了使此扩展生效，
<acronym title="Dynamic Link Library">DLL</acronym> 文件必须能在 Windows 系统的
<em>PATH</em> 指示的路径下找到。如何操作的信息，请参见题为“<a href="faq.installation.html#faq.installation.addtopath" class="link">如何在 Windows 中将 PHP
目录加到 PATH 中</a>”的<acronym title="Frequently Asked Questions">FAQ</acronym>。虽然将
DLL 文件从 PHP 文件夹复制到 Windows 系统目录也行，但不建议这样做。
<em class="emphasis">此扩展需要下列文件在 <em>PATH</em> 路径中：</em>
  <var class="filename">sablot.dll</var>, 
  <var class="filename">expat.dll</var>, and 
  <var class="filename">iconv.dll</var>
  </p>
  <p class="para">
   For PHP &lt;= 4.2.0, the file <var class="filename">iconv.dll</var> is 
   not required.
  </p>
 </p></blockquote>
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="xslt.requirements.html">需求</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="xslt.configuration.html">运行时配置</a></div>
 <div class="up"><a href="xslt.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
